﻿using System;

namespace Ellanet.Classes
{
    public class Sum : IEquatable<Sum>
    {
        public int Multiplicand { get; set; }

        public int Multiplier { get; set; }

        public int Answer => (Multiplicand*Multiplier);

        public bool Equals(Sum other)
        {
            return (other.Multiplicand.Equals(Multiplicand) && other.Multiplier.Equals(Multiplier));
        }
    }
}
